package com.example.serviceconsumer.feign;

import org.springframework.web.bind.annotation.GetMapping;
import reactivefeign.FallbackFactory;
import reactivefeign.spring.config.ReactiveFeignClient;
import reactor.core.publisher.Mono;

/***
 * @author wangpeng
 * @since 2021-06-04  19:53
 */
@ReactiveFeignClient(name = "service-provider",url = "http://localhost:9001")
public interface ProviderClient {

    @GetMapping("/hello")
    Mono<String> hello();
}
